﻿@model Weibo.Web.Models.MySkinModel
                      @{
    var border = "";
    ThemeDIY diy = Themes.GetThemeDIYByUID(Model.CurUser.ID);
    if(Model.CurUserConfig.IsThemeDIY==1){
        
        border = diy.BorderStyle+"Bg";
        
    }
    ViewData["curBorder"] = border;
 }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>个性模板 XX微博-随时随地分享身边的新鲜事儿</title>
    <link rel="stylesheet" type="text/css" href="/Content/CSS/miniblog/user_settings.css" />
    <link id="skin_transformers" rel="stylesheet" type="text/css" href="@Model.CurSkinCss" />
    <link rel="stylesheet" type="text/css" href="/Content/CSS/miniblog/layer.css" />
     <!–[if IE 6]> 
    <script type="text/javascript">
        try {
            document.execCommand("BackgroundImageCache", false, true);
        } catch (err) { }        
    </script>
    <![endif]–>
    <script type="text/javascript">
        var curBorder = "@border";
    </script>

    <script language="javascript" type="text/javascript" src="/Scripts/Common/jquery-1.4.4.min.js"></script>
    <script language="javascript" type="text/javascript" src="/Scripts/CodeList.js"></script>
    <script src="/Scripts/JQP_ClickOther.js" type="text/javascript"></script>
    <script src="/Scripts/JQP_EmailNote.js" language="javascript" type="text/javascript"></script>
    <script src="/Scripts/JQP_HighLineInput.js" type="text/javascript"></script>
    <script src="/Scripts/App.js" type="text/javascript"></script>
    <script src="/Swfupload/swfupload.js" type="text/javascript"></script>
    <script src="/Swfupload/swfupload.cookies.js" type="text/javascript"></script>
    <script src="/Swfupload/swfupload.queue.js" type="text/javascript"></script>
    <script src="/Swfupload/fileprogress.js" type="text/javascript" charset="GB2312"></script>
    <script src="/Swfupload/handler.js" type="text/javascript" charset="GB2312"></script>
    <script src="/Scripts/MiniBlog.js" type="text/javascript"></script>
    <script src="/Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Scripts/Skin.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            @{
               if(diy!=null){
            @:App.skinManage.defColor = { set_backColor: "@diy.BgColor", set_backColor1: "@diy.MainTxtColor", set_backColor2: "@diy.MainLinkColor", set_backColor3: "@diy.SubTxtColor", set_backColor4: "@diy.SubLinkColor", set_backColor5: "@diy.ContentColor" };
            @:App.skinManage.curColor = { set_backColor: "@diy.BgColor", set_backColor1: "@diy.MainTxtColor", set_backColor2: "@diy.MainLinkColor", set_backColor3: "@diy.SubTxtColor", set_backColor4: "@diy.SubLinkColor", set_backColor5: "@diy.ContentColor" };
            @:App.skinManage.defBorder = "@diy.BorderStyle";
            @:App.skinManage.curBorder = "@diy.BorderStyle";
            @:App.skinManage.curLock = "@{@(diy.IsLockBg==1?"fixed":"scroll")}";

               Pic pic=Pics.GetPicByID(diy.BgImgPid);
                if(pic!=null)
                {
                    @:App.skinManage.curPicUrl="@pic.OriginalPicUrl";
                     @:App.skinManage.curPicID=@pic.ID;
                }
            
            @:App.skinManage.curIsRepeat="@{@(diy.IsRepeatBg==1?"repeat":"no-repeat")}";
           @: App.skinManage.curAlignStyle="@{@(diy.AlignStyleBg == 1 ? "left" : (diy.AlignStyleBg == 2?"center":"right"))}";
           @: App.skinManage.IsUseBg=@{@(diy.IsUseBg==1?"true":"false")};
           @:App.skinManage.initDiyBox();
           }
            }
            $("#toggle").click(function () {
                App.skinManage.toggle();
                return false;
            });
            $(".set_backColor").add($(".set_backColor1")).add($(".set_backColor2")).add($(".set_backColor3")).add($(".set_backColor4")).add($(".set_backColor5")).click(function (e) {
                e.stopPropagation();
                App.skinManage.ShowColorPicker(this);
            });

            $(".set_backColor6").click(function (e) {
                e.stopPropagation();
                App.skinManage.ShowBorderBox(this);
            });

            $($(".set_subMenu li")[0]).click(function () {
                $(this).attr("class", "activeSubMenu").next().attr("class", "");
                $(".set_settingPage").show();
                $(".set_pageBack ").show();
                $(".set_changeColor ").hide();
            }).next().click(function () {
                $(this).attr("class", "activeSubMenu").prev().attr("class", "");
                $(".set_settingPage").hide();
                $(".set_pageBack ").hide();
                $(".set_changeColor ").show();
            });

            App.skinManage.ColorCallBack = function (color, elems) {
                $("." + elems).css("background-color", "#" + color);
                $("#picker_container").hide();
                App.skinManage.curColor[elems] = "#" + color;
                App.skinManage.RenderPage();
            };


            $("#themeFile").change(function () {
                App.skinManage.themePicUpload(App.skinManage.themePicUploading);
            });

            $("#useBg").click(function () {
                if ($(this).attr("class") != "set_bg set_border") {
                    $(this).attr("class", "set_bg set_border");
                    $("#nouseBg").attr("class", "set_nobg set_noborder");
                    $("#themeFile").attr('disabled', '');
                    $("#iLock").attr('disabled', '');
                    $("#sRepeat").attr('disabled', '');
                    $("#sAlignStyle").attr('disabled', '');
                    App.skinManage.IsUseBg = true;
                    App.skinManage.RenderPage();
                }
            });
            $("#nouseBg").click(function () {
                if ($(this).attr("class") != "set_nobg set_border") {
                    $(this).attr("class", "set_nobg set_border");
                    $("#useBg").attr("class", "set_bg");
                    $("#themeFile").attr('disabled', 'disabled');
                    $("#iLock").attr('disabled', 'disabled');
                    $("#sRepeat").attr('disabled', 'disabled');
                    $("#sAlignStyle").attr('disabled', 'disabled');
                    App.skinManage.IsUseBg = false;
                    App.skinManage.RenderPage();
                }
            });

            $("#iLock").change(function () {
                if (this.checked)
                    App.skinManage.curLock = "fixed";
                else
                    App.skinManage.curLock = "scroll";
                App.skinManage.RenderPage();
            });
            $("#sRepeat").change(function () {
                App.skinManage.curIsRepeat = this.value;
                App.skinManage.RenderPage();
            });
            $("#sAlignStyle").change(function () {
                App.skinManage.curAlignStyle = this.value;
                App.skinManage.RenderPage();
            });
            $(".defaultColor a").click(function () {
                App.skinManage.backToDefault();
            });

            App.skinManage.initPage();
        });
    </script>
</head>
<body>
     @{
         IList<Weibo.Entity.Type> themeTypes = Types.GetTypesByPID(TypeConfigs.GetThemeRoot);
         if (themeTypes != null)
         {
              
    <div class="set_wrap">
        <div id="container" class="set_interface set_expand" style="position: static;
            top: 0px;">
            <div id="innerContainer" class="set_innerDiv">
                <div>
                    <div class="set_nav">
                        <ul>
                            <li  onclick="App.skinManage.switchTopTips(this,'t0');" id="cate0" class="activeMenu"><span><a
                                onclick="return false;" href="#">最新推荐</a></span></li>
                                @{
             for (int i = 0; i < themeTypes.Count; i++)
             {
                            <li  onclick="App.skinManage.switchTopTips(this,'t@{@(i + 1)}');" id="cate@{@(i + 1)}" class=""><span><a
                                onclick="return false;" href="#">@themeTypes[i].Name</a></span></li>
             }
                                }
                            <li   onclick="App.skinManage.switchTopTips(this,'t@{@(themeTypes.Count+1)}');" id="cate@{@(themeTypes.Count+1)}" >
                                <span><a onclick="return false;" href="#">自定义</a></span></li>
                        </ul>
                    </div>
                    <div class="rt">
                        <a class="newbtn" onclick="App.skinManage.SaveTheme(this);return false;" href="javascript:void(0)">保存</a><a
                            id="cancel" class="newbtnb" onclick="App.skinManage.cancelTheme();return false;" href="javascript:void(0)">取消</a>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div id="skin_display_main">
                @{
                                                                                        IList<Theme> recommendThemes = Themes.GetRecommendThemes();
                                                                                        if (recommendThemes != null)
                                                                                        {
                        <div  pagecount="@{@recommendThemes.Count;}" id="t0" curIndex="0"  class="set_controlDiv" >
                        <ul class="set_chooseStyle01">
                        @{
                                                                for (int j = 0; j < recommendThemes.Count; j++)
                                                                {
                                                                    string isSelect = "";
                                                                    if (Model.CurUserConfig.IsThemeDIY != 1 && Model.CurUserConfig.ThemeID == recommendThemes[j].ID)
                                                                    {
                                                                        isSelect = "set_chosedTemp onborder";
                                                                    }
                                                                  <li class="@{@isSelect;}" onclick="App.skinManage.setTheme(this,@{@recommendThemes[j].ID;},'@{@recommendThemes[j].CssUrl;}');return false;" onmouseout="App.skinManage.skinOut(this);" onmouseover="App.skinManage.skinOver(this);"  style="display:@{@(j<12?"block":"none");}"><a class="noborder" onclick="return false;" href="#">
                                    <img class="set_templateTH" src="@{@recommendThemes[j].ThumPicUrl}">
                                    <p class="name">
                                        @{@recommendThemes[j].Name}</p>
                                </a></li>
                                                                }
                                                                                        }
                        </ul>
                        <div class="clear">
                        </div>
                    </div>
                                                                                        }

                                                                                        for (int i = 0; i < themeTypes.Count; i++)
                                                                                        {
                                                                                            IList<Theme> themes = Themes.GetThemesByType(themeTypes[i].ID);
                                                                                            if (themes != null)
                                                                                            {
                                                                                                
                    <div pagecount="@{@themes.Count;}" curIndex="0" id="t@{@(i + 1)}" class="set_controlDiv" style="display: none;">
                        <ul class="set_chooseStyle01">
                           @{
                                                          for (int j = 0; j < themes.Count; j++)
                                                          {
                                                              string isSelect = "";
                                                              if (Model.CurUserConfig.IsThemeDIY != 1 && Model.CurUserConfig.ThemeID == themes[j].ID)
                                                              {
                                                                  isSelect = "set_chosedTemp onborder";
                                                              }
                            <li class="@{@isSelect;}" onclick="App.skinManage.setTheme(this,@{@themes[j].ID;},'@{@themes[j].CssUrl;}');return false;" onmouseout="App.skinManage.skinOut(this);" onmouseover="App.skinManage.skinOver(this);"  style="display:@{@(j<12?"block":"none");}"><a class="noborder" onclick="return false;"
                                    href="#">
                                    <img class="set_templateTH" src="@{@themes[j].ThumPicUrl}">
                                    <p class="name">
                                        @{@themes[j].Name}</p>
                                </a></li>
                                                          }
                             }
                        </ul>
                        <div class="clear">
                        </div>
                    </div>
                                                                                            }
                                                                                        }
         }
                    <div id="pagingContainer" >
                        <div  class="skinPage2">
                            <div class="fanye MIB_txtbl">
                                <a id="pagePrev" class="btn_num btn_numWidth" href="javascript:void(0);" onclick="App.skinManage.prevPageTheme(this);return false;"><em>上一页</em></a><a onclick="App.skinManage.nextPageTheme(this);return false;" id="pageNext" class="btn_num btn_numWidth" href="javascript:void(0);"><em>下一页</em></a></div>
                        </div>
                    </div>
                    <div style="display: none;" id="t@{@(themeTypes.Count+1)}" class="set_userDefined">
                        <div class="set_subMenu lf">
                            <ul>
                                <li class="activeSubMenu"><a href="javascript:void(0);">页面背景</a></li><li><a href="javascript:void(0);">颜色</a></li></ul>
                        </div>
                        <div class="set_settingPage set_uploadSuccess lf">
                            <div class="set_setBackground lf">
                                <div id="useBg" class="set_bg set_border">
                                    <div class="set_isUsing">
                                        <div class="imgBox">
                                            <img src="/Content/Image/pic2.gif" alt="背景图"></div>
                                        <p>
                                            使用背景图</p>
                                    </div>
                                </div>
                                <div id="nouseBg" class="set_nobg set_noborder">
                                    <div class="set_notUse">
                                        <p>
                                            不使用背景图</p>
                                    </div>
                                </div>
                            </div>
                            <div class="set_otherSettings lf">
                                <div>
                                    <form target="uploadBgIframe" method="post" action="/PicUpload/ThemePicUpload/" id="uploadeForm" 
                                    enctype="multipart/form-data" >
                                    <input type="file" class="MIB2_input" name="themeFile" id="themeFile"><strong id="ulState" style="display: none;">上传成功！</strong><a
                                        style="display: none;" href="#" id="reupload" onclick="$(this).hide().prev().hide().next().next().show();return false;" class="btn_normal marginLeft5"><em>重新上传</em></a></form>
                                    <p class="set_gray">
                                        <iframe width="1" height="1" frameborder="0" style="display: none" src="about:blank"
                                            name="uploadBgIframe" id="uploadBgIframe"></iframe>
                                        支持大小不超过5M的jpg、gif、png图片上传<br>
                                        头部区域图尺寸建议为800x115，<br>
                                        也可利用左右两侧区域做设计，模板更精彩。
                                    </p>
                                </div>
                                <div class="marginTop15">
                                    <strong>设置背景图：</strong><span class="toInlineBlock" style="margin-right: 5px;"><input id="iLock"
                                        type="checkbox">锁定</span><select id="sRepeat"><option value="repeat">平铺</option>
                                            <option value="no-repeat">不平铺</option>
                                        </select><span class="toInlineBlock marginLeft20"><strong>对齐方式：</strong><select id="sAlignStyle"><option
                                            value="left">左对齐</option>
                                            <option value="center">居中</option>
                                            <option value="right">右对齐</option>
                                        </select></span></div>
                            </div>
                        </div>
                        <div class="set_pageBack lf" >
                            <div class="set_backColor" style="background-color: rgb(112, 154, 222);">
                            </div>
                            <p>
                                页面背景</p>
                        </div>
                        <div class="set_changeColor" style="display:none;">
                            <ul style="display: inline;">
                                <li class="">
                                    <div class="set_backColor1" style="background-color: rgb(102, 102, 102);">
                                    </div>
                                    <p>
                                        主文字</p>
                                </li>
                                <li class="">
                                    <div class="set_backColor2" style="background-color: rgb(0, 130, 203);">
                                    </div>
                                    <p>
                                        主链接</p>
                                </li>
                                <li class="">
                                    <div class="set_backColor3" style="background-color: rgb(255, 255, 255);">
                                    </div>
                                    <p>
                                        次文字</p>
                                </li>
                                <li class="">
                                    <div class="set_backColor4" style="background-color: rgb(195, 233, 255);">
                                    </div>
                                    <p>
                                        次链接</p>
                                </li>
                                <li class="">
                                    <div class="set_backColor5" style="background-color: rgb(243, 252, 253);">
                                    </div>
                                    <p>
                                        内容背景</p>
                                </li>
                                <li class="">
                                    <div class="set_backColor6" style="">
                                    </div>
                                    <p>
                                        边框</p>
                                </li>
                            </ul>
                            <div class="defaultColor">
                                <a href="#">恢复到默认颜色</a></div>
                            <div class="clear" style="margin-bottom: -79px;">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="set_upDownLink">
                <a id="toggle" href="#">&nbsp; </a>
            </div>
        </div>
    </div> 
         }
         }
    <div class="MIB_bloga">
        <div class="MIB_blogb">
            @{
            if(Model.CurUser!=null){
                <style type="text/css">@@media screen and (-webkit-min-device-pixel-ratio:0){.tsina_gnb{top:8px;}.tsina_gnb ul li.on a{margin-bottom:-1px; padding:2px 5px 10px 7px;}.tsina_gnb ul.sltmenu{top:26px;}.tsina_gnb ul.sltmenu li a{margin:0 2px; padding:4px 13px 3px;}.tsina_gnb ul li em.nmTxt,.tsina_gnb ul li a{font-family:inherit;}}.top_yellowtip{position:fixed;top:30px;_position:relative;_top:0px;width:100%;z-index:2000;}.re_top{top:0px;}</style><div class="tsina_gnbarea" id="topBar"><div class="bg_gnbarea">&nbsp;</div><div  class="tsina_gnb"><ul class="gnb_l"><li><a href="/">微博</a></li></ul><ul class="gnb_r"><li><a href="/@Model.CurUser.NickName/profile/">@Model.CurUser.NickName</a></li><li><a href="Map/Index" target="_blank">地图找人</a></li><li><a href="/Message/Index">私信</a> </li><li><a href="/Notice/Index/">通知</a></li><li><a href="/Setup/BaseInfo">帐号设置</a></li><li class="line">|</li><li><a href="/User/Logout">退出</a></li></ul></div></div><div class="top_yellowtip" id="yellowtip"><div class="small_Yellow_div tsina_gnb re_top"><div id="unreadLayer" class="small_Yellow" style="display:none"><table class="CP_w"><thead><tr><th class="tLeft"><span></span></th><th class="tMid"><span></span></th><th class="tRight"><span></span></th></tr></thead><tbody><tr><td class="tLeft"><span></span></td><td class="tMid"><div class="yInfo"><p id="unreadCommentCount" style="display: none;"></p><p id="unreadFollowCount" style="display: none;"></p><p id="unreadMsgCount" style="display: none;"></p><p id="unreadAtmeCount" style="display: none;"></p><p id="unreadAtcmtCount" style="display: none;"></p><p id="unreadNoticeCount" style="display: none;"></p><div></div></div></td><td class="tRight"><span></span></td></tr></tbody><tfoot><tr><td class="tLeft"><span></span></td><td class="tMid"></td><td class="tRight"><span></span></td></tr></tfoot></table><div class="close"><a id="WB_unread_layer_close_1316403245132" href="javascript:void(0)">&nbsp;</a></div></div></div></div>
            }
            else
            {
               <style type="text/css">@@media screen and (-webkit-min-device-pixel-ratio:0){.tsina_gnb{top:8px;}.tsina_gnb ul li.on a{margin-bottom:-1px; padding:2px 5px 10px 7px;}.tsina_gnb ul.sltmenu{top:26px;}.tsina_gnb ul.sltmenu li a{margin:0 2px; padding:4px 13px 3px;}.tsina_gnb ul li em.nmTxt,.tsina_gnb ul li a{font-family:inherit;}}.top_yellowtip{position:fixed;top:30px;_position:relative;_top:0px;width:100%;z-index:2000;}.re_top{top:0px;}</style><div class="tsina_gnbarea" id="topBar"><div class="bg_gnbarea">&nbsp;</div><div  class="tsina_gnb"><ul class="gnb_l"></ul><ul class="gnb_r"><li><a onclick='App.showLoginDial();' href=\"javascript:void(0);\">登录</a></li><li><a href='javascript:void(0);' onclick='App.showLoginDial();App.showLoginDial2Reg();'>注册</a></li></ul></div></div><div class="top_yellowtip" id="yellowtip"><div class="small_Yellow_div tsina_gnb re_top"><div id="unreadLayer" class="small_Yellow" style="display:none"><table class="CP_w"><thead><tr><th class="tLeft"><span></span></th><th class="tMid"><span></span></th><th class="tRight"><span></span></th></tr></thead><tbody><tr><td class="tLeft"><span></span></td><td class="tMid"><div class="yInfo"><p id="unreadCommentCount" style="display: none;"></p><p id="unreadFollowCount" style="display: none;"></p><p id="unreadMsgCount" style="display: none;"></p><p id="unreadAtmeCount" style="display: none;"></p><p id="unreadAtcmtCount" style="display: none;"></p><p id="unreadNoticeCount" style="display: none;"></p><div></div></div></td><td class="tRight"><span></span></td></tr></tbody><tfoot><tr><td class="tLeft"><span></span></td><td class="tMid"></td><td class="tRight"><span></span></td></tr></tfoot></table><div class="close"><a id="WB_unread_layer_close_1316403245132" href="javascript:void(0)">&nbsp;</a></div></div></div></div>
            }
        }
@RenderPage("~/Views/Shared/_MainHeader.cshtml")
            <div class="MIB_blogbody">
                <div id="rightborder" class="MIB_mblogbgr @border">
                    <div class="MIB_mblogbgl">
                        <div class="mainR MIB_200 MIB_txtar MIB_linkar">
                              @RenderPage("~/Views/Shared/_userInfo.cshtml")
                             @RenderPage("~/Views/Shared/_rightNav.cshtml") 
                        </div>
                        <div id="indexMainL" class="mainL MIB_600 MIB_txtal MIB_linkal">
                            <div class="MIB_mbloghead">
                                <div class="MIB_mblogbox">
                                    <div class="postWrap">
                                        <div class="pngBg">
                                            <div class="postOptionBg">
                                            </div>
                                            <div class="pngGuidBg">
                                            </div>
                                            <div class="pngAreaBg">
                                            </div>
                                        </div>
                                        <div class="connBg">
                                            <div id="publisher_info" class="wordNumBg">
                                                你还可以输入<span class="pipsLim">140</span>字</div>
                                            <div class="postOptionBg">
                                                <div id="publisher_faces" class="OnTit">
                                                    <img title="表情" class="small_icon faceicon" src="/Content/Image/transparent.gif">
                                                    <a tabindex="2" href="javascript:void(0)">表情</a>
                                                </div>
                                                <div id="publisher_pic" class="OnPic">
                                                    <span poptype="1" pop="true" id="publisher_image">
                                                        <img title="图片" class="small_icon picnormal" src="/Content/Image/fbqimgclose.gif"><a
                                                            tabindex="3" href="####">图片</a> </span>
                                                </div>
                                                <div id="publisher_video" class="OnTit">
                                                    <img class="small_icon videoicon" title="视频" src="/Content/Image/transparent.gif"><a
                                                        tabindex="4" href="javascript:void(0);">视频</a>
                                                </div>
                                                <div id="publisher_music" class="OnTit">
                                                    <img class="small_icon musicico" title="音乐" src="/Content/Image/transparent.gif"><a
                                                        tabindex="5" href="javascript:void(0);">音乐</a>
                                                </div>
                                                <div id="publisher_topic" class="OnTit">
                                                    <img class="small_icon askico" title="话题" src="/Content/Image/transparent.gif"><a
                                                        tabindex="6" href="javascript:void(0);">话题</a>
                                                </div>
                                                <div class="OnTit" id="publisher_vote">
                                                    <img src="/Content/Image/transparent.gif" class="small_icon voteicon" title="投票"><a
                                                        tabindex="7" href="javascript:void(0);">投票</a>
                                                </div>
                                            </div>
                                            <div class="postBtnBg bgColorA_No">
                                                <a title="" tabindex="8" id="publisher_submit" href="javascript:void(0);"></a>
                                            </div>
                                            <div style="display: block" class="inputarea">
                                                <label style="display: none;" for="publish_editor">
                                                    微博输入框</label>
                                                <textarea title="" id="publish_editor" rows="" cols="" name="" accesskey="1" tabindex="1"
                                                    style="font-family: Tahoma,宋体; border-style: solid; border-width: 0px; word-wrap: break-word;
                                                    font-size: 14px; line-height: 18px; overflow-x: hidden;" range="0&0"></textarea>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="MIB_mbloglist">
                                <div class="clear choose">
                                    <div class="my_index">
                                        我的首页</div>
                                </div>
                                <ul id="feed_list" class="MIB_feed" iswrite="1" _num="15">
                                    @{
                                        if (Model.MiniBlogs != null)
                                        {
                                            foreach (Weibo.Entity.MiniBlog m in Model.MiniBlogs)
                                            {
                                                if (m != null)
                                                {
                                                    var dateSpan = DateSpan.Get(m.CreateTime);
                                                    From from = Froms.GetFromByID(m.FromID);
                                                    var user = Users.GetUserByID(m.UID);
                                                    var content = MiniBlogs.BBCodeToHtml(m.RealContent);
                                                    string[] media = m.MediaContent.Split(',');
                                                    if (user != null)
                                                    {
                                        <li id="mid_@{@m.ID;}" class="MIB_linedot_l">
                                            <div class="head_pic">
                                                <a href="/@{@user.ID;}" uid="@{@user.ID;}" namecard="true" uname="@{@user.NickName;}" >
                                                    <img src="@{@user.MidAvartar;}" 
                                                    title="@{@user.NickName;}" /></a>
                                            </div>
                                            <div class="MIB_feed_c">
                                                <p  mid="@{@m.ID;}" class="sms">
                                                    <a title="@{@user.NickName;}" href="/@{@user.ID;}" uid="@{@user.ID;}" namecard="true"  uname="@{@user.NickName;}">
                                                        @{@user.NickName;}
                                                    </a>：@{@MvcHtmlString.Create(content);}
                                                </p>
                                                @{
                                                                                         if (m.IsOriginal == 1 && m.OriginalMID < 0)
                                                                                         {
                                                    <div id="prev_@{@m.ID;}" class="feed_preview" style="">
                                                        @{
                                                                         if (media[0] != "-1")
                                                                         {

                                                            <div class="feed_img">
                                                                <a href="javascript:;" onclick="App.scaleImg(this,'@{@m.ID;}');return false;">
                                                                    <img  class="imgicon" src="@{@media[4];}" /></a>
                                                                <img src="/Content/Image/loading.gif" style="position: absolute; background-color: transparent;
                                                                    border: 0px none; width: 16px; height: 16px; z-index: 1001; display: none;" />
                                                            </div>
                                                                         }
                                                                         if (media[1] != "-1")
                                                                         {
    
                                                            <div class="feed_img" type="video" vid="@{@media[1];}" mid="@{@m.ID;}" style="width: 120px; height: 90px;">
                                                                <a onclick="return false;" href="javascript:void(0);">
                                                                    <img width="120" height="90" style="cursor: pointer;" class="imgicon"
                                                                    src="@{@media[5];}" /></a><img src="/Content/Image/feedvideoplay.gif" onmouseover="App.mouseoverIco(this);"
                                                                        onmouseout="App.mouseoutIco(this);" style="cursor: pointer; display: block; margin-top: -61.5px;
                                                                        margin-left: 43.5px; opacity: 0.5; filter: alpha(opacity=50);" /></div>
                                                             
                                                                         }
                                                                         if (media[2] != "-1")
                                                                         {
                                                            <div class="feed_img" type="music" musicid="@{@media[2];}" mid="@{@m.ID;}" style="width: 135px; height: 33px;">
                                                                <a onclick="return false;" href="javascript:void(0);">
                                                                    <img style="cursor: pointer;" class="imgicon" src="/Content/Image/music_s.gif" /></a></div>
                                                                         }
                                                                         if (media[3] != "-1")
                                                                         {
                                                                             if (!string.IsNullOrEmpty(media[6]))
                                                                             {
                                                            <div class="feed_img" type="vote" voteid="@{@media[3];}" mid="@{@m.ID;}" >
                                                                <a onclick="return false;" href="javascript:void(0);">
                                                                    <img style="cursor: pointer;" class="imgicon" src="@{@media[6];}" /></a><img onmouseover="App.mouseoverIco(this);"
                                                                        onmouseout="App.mouseoutIco(this);" src="/Content/Image/vote_picicon_01.gif"
                                                                        style="cursor: pointer; display: none; opacity: 0.5; filter: alpha(opacity=50);"></div>
                                                        
                                                                             }
                                                                             else
                                                                             {
                                                            <div class="feed_img" type="vote" voteid="@{@media[3];}" mid="@{@m.ID;}" style="width: 120px; height: 90px;">
                                                                <a onclick="return false;" href="javascript:void(0);">
                                                                    <img style="cursor: pointer;" class="imgicon" src="/Content/Image/vote_pic_01.gif" /></a></div>
                                                                             }
                                                                         }
                                                        }
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div style="display: none;" id="disp_@{@m.ID;}" class="MIB_assign">
                                                    </div>
                                                                                         }
                                                                                         else
                                                                                         {
                                                                                             MiniBlog oriMBlog = MiniBlogs.GetMiniBlogByID(m.OriginalMID);
                                                                                             if (oriMBlog != null)
                                                                                             {
                                                                                                 var odateSpan = DateSpan.Get(oriMBlog.CreateTime);
                                                                                                 From ofrom = Froms.GetFromByID(oriMBlog.FromID);

                                                                                                 var ocontent = MiniBlogs.BBCodeToHtml(oriMBlog.RealContent);
                                                                                                 string[] omedia = oriMBlog.MediaContent.Split(',');
                                                                                                 User oriUser = Users.GetUserByID(oriMBlog.UID);
                                                                                                 if (oriUser != null)
                                                                                                 {
                                                                                                     
                                                    <div class="MIB_assign">
                                                        <div class="MIB_asarrow_l">
                                                        </div>
                                                        <div class="MIB_assign_t">
                                                        </div>
                                                        <div class="MIB_assign_c MIB_txtbl">
                                                            <p  mid="@{@m.ID;}" class="source">
                                                                <a href="/@{@oriUser.ID;}" uid="@{@oriUser.ID;}" namecard="true" uname="@{@oriUser.NickName;}" >
                                                                    @@@{@oriUser.NickName;}
                                                                </a>：@{@MvcHtmlString.Create(ocontent);}
                                                            </p>
                                                            <div id="prev_@{@m.ID;}" class="feed_preview" mbind="1" style="">
                                                                @{
                                                                                 if (omedia[0] != "-1")
                                                                                 {

                                                                    <div class="feed_img">
                                                                        <a href="javascript:;" onclick="App.scaleImg(this,'@{@m.ID;}');return false;">
                                                                            <img vimg="1" class="imgicon" src="@{@omedia[4];}" /></a>
                                                                        <img src="/Content/Image/loading.gif" style="position: absolute; background-color: transparent;
                                                                            border: 0px none; width: 16px; height: 16px; z-index: 1001; display: none;" />
                                                                    </div>
                                                                                 }
                                                                                 if (omedia[1] != "-1")
                                                                                 {
                                                                    <div class="feed_img" type="video" vid="@{@omedia[1];}" mid="@{@m.ID;}" style="width: 120px; height: 90px;">
                                                                        <a onclick="return false;" href="#">
                                                                            <img width="120" height="90" style="cursor: pointer;" class="imgicon"
                                                                    src="@{@omedia[5];}" /></a><img src="/Content/Image/feedvideoplay.gif" onmouseover="App.mouseoverIco(this);"
                                                                        onmouseout="App.mouseoutIco(this);" style="cursor: pointer; display: block; margin-top: -61.5px;
                                                                        margin-left: 43.5px; opacity: 0.5; filter: alpha(opacity=50);" /></div>
                                                                                 }
                                                                                 if (omedia[2] != "-1")
                                                                                 {
                                                                    <div class="feed_img" type="music" musicid="@{@omedia[2];}" mid="@{@m.ID;}" style="width: 135px; height: 33px;">
                                                                        <a onclick="return false;" href="#">
                                                                            <img style="cursor: pointer;" class="imgicon" src="/Content/Image/music_s.gif" /></a></div>
                                                                                 }
                                                                                 if (omedia[3] != "-1")
                                                                                 {
                                                                                     if (!string.IsNullOrEmpty(omedia[6]))
                                                                                     {
                                                                    <div class="feed_img" type="vote" voteid="@{@omedia[3];}" mid="@{@m.ID;}" >
                                                                        <a onclick="return false;" href="#">
                                                                            <img style="cursor: pointer;" class="imgicon" src="@{@omedia[6];}" /></a><img onmouseover="App.mouseoverIco(this);"
                                                                                onmouseout="App.mouseoutIco(this);" src="/Content/Image/vote_picicon_01.gif"
                                                                                style="cursor: pointer; display: none; opacity: 0.5; filter: alpha(opacity=50);"></div>
                                                                                     }
                                                                                     else
                                                                                     {
                                                                    <div class="feed_img" type="vote" voteid="@{@omedia[3];}" mid="@{@m.ID;}"  style="width: 120px; height: 90px;">
                                                                        <a onclick="return false;" href="#">
                                                                            <img style="cursor: pointer;" class="imgicon" src="/Content/Image/vote_pic_01.gif" /></a></div>
                                                                                     }
                                                                                 }
                                                                }
                                                                <div class="clear">
                                                                </div>
                                                            </div>
                                                            <div style=" display: none;" id="disp_@{@m.ID;}" class="blogPicOri">
                                                            </div>
                                                            <div class="feed_att MIB_linkbl MIB_txtbl">
                                                                <div class="lf">
                                                                    <cite><a  href="/@{@oriUser.ID;}/@{@oriMBlog.IDCode;}"><strong>
                                                                        @{@odateSpan;}
                                                                    </strong></a></cite><strong>来自</strong><cite><a
                                                                            target="_blank" href="@{@ofrom.FromUrl;}">@{@ofrom.FromName;}
                                                                    </a></cite>
                                                                </div>
                                                                <div class="rt">
                                                                    <a  href="/@{@oriUser.ID;}/@{@oriMBlog.IDCode;}">转发@{
                                                                                                                 if (oriMBlog.QuoteCount > 0)
                                                                                                                 {<strong type="rttCount">(@{@oriMBlog.QuoteCount;}
                                                                                                                     )</strong>
                                                                                                                 }
                                                                    }
                                                                    </a><span class="MIB_line_l">|</span> <a  href="/@{@oriUser.ID;}/@{@oriMBlog.IDCode;}">
                                                                        评论@{
                                                                                                                                                       if (oriMBlog.CommentCount > 0)
                                                                                                                                                       {<strong type="commtCount">(@{@oriMBlog.CommentCount;}
                                                                                                                                                           )</strong>
                                                                                                                                                       }
                                                                        }
                                                                    </a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="MIB_assign_b">
                                                        </div>
                                                    </div>
                                                                                                 }
                                                                                             }
                                                                                             else
                                                                                             {
                                                    <div class="MIB_assign">
                                                        <div class="MIB_asarrow_l">
                                                        </div>
                                                        <div class="MIB_assign_t">
                                                        </div>
                                                        <div class="MIB_assign_c MIB_txtbl">
                                                            <p class="source">
                                                                该微博已被删除</p>
                                                        </div>
                                                        <div class="MIB_assign_b">
                                                        </div>
                                                    </div>
                                                                                             }
                                                                                         }
                                                }
                                                <!-- 转发 -->
                                                <!-- 转发 -->
                                                <div class="feed_att MIB_linkbl MIB_txtbl">
                                                    <div class="lf">
                                                        <cite><a  href="/@{@user.ID;}/@{@m.IDCode;}"><strong>
                                                            @{@dateSpan;}
                                                        </strong></a></cite><strong>来自</strong><cite><a
                                                                 target="_blank" href="@{@from.FromUrl;}">@{@from.FromName;}
                                                        </a></cite>
                                                    </div>
                                                    <div class="rt">
                                                        <!-- 转发 -->
                                                        @{
                                                                                                                          if (user.ID == Model.CurUser.ID)
                                                                                                                          {
                                                            <strong><a onclick="App.miniblogDel('@{@m.ID;}',this)" href="javascript:void(0);"><strong>
                                                                删除</strong></a><span class="MIB_line_l">|</span></strong>
                                                                                                                          }
                                                        }
                                                        <a onclick="App.showFeedDiv('@{@m.ID;}',@{@m.IsOriginal;},'@{@m.OriginalMID;}');return false;"
                                                            href="javascript:void(0);"><strong lang="CD0023">转发</strong>@{
                                                                                                                                   if (m.QuoteCount > 0)
                                                                                                                                   {<strong type="rttCount"id="num_@{@m.ID;}">(@{@m.QuoteCount;}
                                                                                                                                       )</strong>
                                                                                                                                   }
                                                            }
                                                        </a>
                                                        <!-- 转发 -->
                                                        <span class="MIB_line_l">|</span> <a onclick="App.AddFavorite(@{@Model.CurUser.ID},@{@m.ID;},this);return false;"
                                                            href="javascript:void(0);"><strong lang="CL1003">收藏</strong></a>
                                                        <!-- 评论 -->
                                                        <span class="MIB_line_l">|</span> <a onclick="App.InsertCommentBox('@{@m.ID;}','@{@user.ID}')"
                                                            href="javascript:void(0);" id="comment_count_@{@m.ID;}"><strong>评论</strong>@{
                                                                                                                if (m.CommentCount > 0)
                                                                                                                {<strong>(@{@m.CommentCount;}
                                                                                                                    )</strong>
                                                                                                                }
                                                            }
                                                        </a>
                                                        <!-- 评论 -->
                                                    </div>
                                                </div>
                                                <div id="comment_list_@{@m.ID;}">
                                                </div>
                                            </div>
                                        </li>
                                                    }
                                                }
                                            }
                                        }
                                    }
                                </ul>
                                <div class="MIB_bobar">
                                    <div class="ftop lf">
                                        <a href="#">
                                            <img class="small_icon returntop" src="/Content/Image/transparent.gif" title="">返回顶部</a></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            @RenderPage("~/Views/Shared/_Bottom.cshtml")
        </div>
    </div>
</body>
</html>
